Skip to content

Blazor github pages config#4

Merged
Zettersten merged 1 commit intomainfrom
feature/blazor-github-pages-config-b913
Jan 13, 2026
Merged

Blazor github pages config#4
Zettersten merged 1 commit intomainfrom
feature/blazor-github-pages-config-b913

Conversation

@Zettersten
Copy link
Owner

Fix GitHub Pages deployment for Blazor WASM by using the BaseHref MSBuild property and standard GitHub Actions.

The previous workflow failed with KeyError: 'WWWROOT' because shell variables were not exported to the Python script used to patch index.html. This PR adopts the recommended approach of setting the base href during dotnet publish.


Open in Cursor Open in Web

Use Blazor's BaseHref publish property instead of runtime HTML patching, and simplify Pages assets to 404.html + .nojekyll.
@cursor
Copy link

cursor bot commented Jan 13, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@Zettersten Zettersten marked this pull request as ready for review January 13, 2026 18:29
@Zettersten Zettersten merged commit b606c76 into main Jan 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants